package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("reservation")
public class Reservation {
    @TableId(value = "rid", type = IdType.AUTO)
    private Integer rId;
    private Integer pId;
    private Integer sId;
    private LocalDateTime rTime;
    private String rNum;
    private Integer rState;
    private String rInfo;

    public Reservation(Integer pId, Integer sId, String rNum, Integer rState, String rInfo) {
        this.pId = pId;
        this.sId = sId;
        this.rNum = rNum;
        this.rState = rState;
        this.rInfo = rInfo;
    }
}
